@echo off
chcp 65001 >nul
echo ========================================
echo 快速测试 - 设施集合文件
echo ========================================
echo.
echo 正在修改配置文件...

:: 创建临时配置
(
echo {
echo   "分析范围": {
echo     "测试模式": true,
echo     "测试行数": 10000
echo   },
echo   "文件选择": {
echo     "分析所有文件": false,
echo     "指定文件": [
echo       "output/设施集合.csv"
echo     ]
echo   },
echo   "字段识别": {
echo     "唯一性阈值": 0.5,
echo     "ID关键词": ["id", "_id", "编号", "序号", "uuid", "guid"]
echo   },
echo   "关系分析": {
echo     "启用": true,
echo     "最小关系强度": 1.5
echo   },
echo   "输出设置": {
echo     "输出目录": "output",
echo     "报告文件名格式": "{文件名}_枚举分析.html"
echo   }
echo }
) > 枚举分析配置.json

echo ✅ 配置完成！
echo.
echo 开始分析设施集合文件...
echo.

node src\analyzeEnumsConfig.js

echo.
echo ========================================
echo 分析完成！
echo ========================================
echo.
echo 报告位置: output\设施集合_枚举分析.html
echo.
set /p open=是否现在打开报告? (Y/N): 
if /i "%open%"=="Y" (
    start output\设施集合_枚举分析.html
)

pause

